import { ElMessageBox } from "element-plus";



export const dialog = {

    err(msg: any) {
        const m = msg as string;
        ElMessageBox({
            title: '错误',
            message: m,
            type: 'error',
            showCancelButton: false,
            showConfirmButton: true,
            confirmButtonText: '确定',
            closeOnClickModal: true,
        }).then(() => {})
        .catch(() => {});
    }

}

